package org.flik.server.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;

@SuppressWarnings("serial")

@NamedQueries({
	@NamedQuery(name=TicketType.QUERY_PROJECT_TICKET_TYPES, query = "select tt from TicketType tt")
})

@Entity
public class TicketType implements Serializable{
	public static final String QUERY_PROJECT_TICKET_TYPES = "QUERY_PROJECT_TICKET_TYPES";
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	private Long id; 
	
	@Column(unique=true, nullable = false)
	private String description;

	public TicketType() {
		// TODO Auto-generated constructor stub
	}
	
	public TicketType(String description) {
		super();
		this.description = description;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

}
